﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//抹布打扫(清扫破碎物体)
public class Lab_Cloth : MonoBehaviour
{
    private GraspingObjectBase graspingObjectBase = null;

    private void OnTriggerEnter(Collider other)
    {
        BrokenEff broken_Root = other.GetComponentInParent<BrokenEff>();
        if (broken_Root != null)
        {
            broken_Root.CleanOne_Start(other);
        }
    }
    private void OnTriggerExit(Collider other)
    {
        if (graspingObjectBase != null)
            graspingObjectBase = null;
    }
}
